// ignore_for_file: file_names, slash_for_doc_comments, must_call_super, unnecessary_overrides, override_on_non_overriding_member, must_be_immutable, prefer_const_constructors
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:mybase/base/abstract/IFFScaffold.dart';
import 'package:mybase/base/widget/layout/FFImageButton.dart';
import 'package:mybase/base/widget/layout/FFLineContainer.dart';
import 'package:mybase/base/widget/layout/FFNavi.dart';
import 'package:mybase/base/widget/page/FFListScaffold.dart';

/**Head List演示 */
class FFHeadListPage extends FFListScaffold {
  String? name;
  FFHeadListPage({Key? key, this.name}) : super(key: key);

  @override
  FFHeadListPageState createState() => FFHeadListPageState();
}

class FFHeadListPageState extends FFListScaffoldState {
  /**固定写法 */
  @override
  IFFScaffold get iffScaffold => this;
  @override
  FFHeadListPage get widget => super.widget as FFHeadListPage;
  /**固定写法end */

  @override
  void ffInitState() {
    super.ffInitState();
  }

  @override
  Widget? ffNavi(BuildContext context) {
    return FFNaviFast.navi(context, "Head ListView页面", color: Colors.white);
  }

  @override
  Widget? ffHeadSliver(BuildContext context) {
    return SliverToBoxAdapter(child: FFImageButton(image: null,color: Colors.red,heigth: 66,));
  }

  @override
  Widget ffItem(BuildContext context, int index) {
    return FFImageButton(
      margin: EdgeInsets.only(bottom: 2),
      color: Colors.pink,
      image: null,
      heigth: 66,
    );
  }

  @override
  int ffItemCount() {
    return 20;
  }
}
